package com.gt.quality.system.entity.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author makeJava
 */
@Data
@Schema(title = "菜单选择", description = "菜单选择树")
public class MenuTreeVo {

    @Schema(title = "icon", description = "菜单图标")
    private String icon;


    @Schema(title = "title", description = "菜单名称")
    private String title;

    @Schema(title = "id", description = "菜单Id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @Schema(title = "spread", description = "是否展开")
    private boolean spread;

    @Schema(title = "checked", description = "是否选中")
    private boolean checked;

    @Schema(title = "parent_id",description = "父菜单ID")
    private Long parentId;


    @Schema(title = "children", description = "子菜单")
    private List<MenuTreeVo> children;

}
